package compare.equals;

public class demo3 {
    public static void main(String[] args) {
        Student studentC1 = new Student(1,"A");
        Student studentC2 = new Student(2,"B");
        Student studentC3 = new Student(1,"A");
        System.out.println(studentC1.equals(studentC2));//false
        System.out.println(studentC1.equals(studentC3));//true
    }
    /*public static void main1(String[] args) {
        StudentC studentC1 = new StudentC();
        StudentC studentC2 = new StudentC();
        StudentC studentC3 = studentC1;
        System.out.println(studentC1 == studentC2);//false
        System.out.println(studentC1.compare.equals(studentC2));//false
        System.out.println("===========================");
        System.out.println(studentC1 == studentC3);//true
        System.out.println(studentC1.compare.equals(studentC3));//true
        System.out.println("===========================");

        int a = 1;
        int b = 2;
        System.out.println(a == b);//false
        System.out.println(a > b);//false
        System.out.println(a < b);//true
        Integer d = 3;
        Integer e = 2;
        System.out.println(d.compare.equals(e));//false


        char c1 = 'a';
        char c2 = 'b';
        System.out.println(c1==c2);//false
        System.out.println(c1>c2);//false
        System.out.println(c1<c2);//true
        Character c3 = 'a';
        Character c4 = 'b';
        System.out.println(c3.compare.equals(c4));//false


        boolean b1 = true;
        boolean b2 = false;
        System.out.println(b1==b2);//false
        System.out.println(b1!=b2);//true
        Boolean b3 = true;
        Boolean b4 = false;
        System.out.println(b3.compare.equals(b4));//false
    }*/
}
